﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/QCCM2" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/QCCM2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ArrayOfQCAttrib">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="QCAttrib" nillable="true" type="tns:QCAttrib" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfQCAttrib" nillable="true" type="tns:ArrayOfQCAttrib" />
  <xs:complexType name="QCAttrib">
    <xs:sequence>
      <xs:element minOccurs="0" name="Desc" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Disabled" type="xs:boolean" />
      <xs:element minOccurs="0" name="ID" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TypeOfData" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="QCAttrib" nillable="true" type="tns:QCAttrib" />
  <xs:complexType name="ArrayOfMaterial">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Material" nillable="true" type="tns:Material" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMaterial" nillable="true" type="tns:ArrayOfMaterial" />
  <xs:complexType name="Material">
    <xs:sequence>
      <xs:element minOccurs="0" name="MaterialDescription" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MaterialDisabled" type="xs:boolean" />
      <xs:element minOccurs="0" name="MaterialID" type="xs:int" />
      <xs:element minOccurs="0" name="MaterialName" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Material" nillable="true" type="tns:Material" />
  <xs:complexType name="ArrayOfMaterialQCAttrib">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MaterialQCAttrib" nillable="true" type="tns:MaterialQCAttrib" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMaterialQCAttrib" nillable="true" type="tns:ArrayOfMaterialQCAttrib" />
  <xs:complexType name="MaterialQCAttrib">
    <xs:sequence>
      <xs:element minOccurs="0" name="Lower" type="xs:decimal" />
      <xs:element minOccurs="0" name="MaterialID" type="xs:int" />
      <xs:element minOccurs="0" name="MaterialName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MaterialQCADisabled" type="xs:boolean" />
      <xs:element minOccurs="0" name="MeasurementType" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="QCAttribID" type="xs:int" />
      <xs:element minOccurs="0" name="QCAttribName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Target" type="xs:decimal" />
      <xs:element minOccurs="0" name="Threshold" type="xs:decimal" />
      <xs:element minOccurs="0" name="Upper" type="xs:decimal" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MaterialQCAttrib" nillable="true" type="tns:MaterialQCAttrib" />
  <xs:complexType name="ArrayOfQCSchedule">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="QCSchedule" nillable="true" type="tns:QCSchedule" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfQCSchedule" nillable="true" type="tns:ArrayOfQCSchedule" />
  <xs:complexType name="QCSchedule">
    <xs:sequence>
      <xs:element minOccurs="0" name="Day" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GroupID" type="xs:int" />
      <xs:element minOccurs="0" name="Hour" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MaterialID" type="xs:int" />
      <xs:element minOccurs="0" name="MaterialName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="QCAttribID" type="xs:int" />
      <xs:element minOccurs="0" name="QCAttribName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="QCScheduleDisabled" type="xs:boolean" />
      <xs:element minOccurs="0" name="qcAttribName" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="QCSchedule" nillable="true" type="tns:QCSchedule" />
</xs:schema>